<template lang="jade">
#root
  // Main jumbotron for a primary marketing message or call to action
  .jumbotron
    .container
      h1 {{ info.title }}    
      p
        | {{ info.msg }}  
      |         
      p
        a.btn.btn-primary.btn-lg(href='#', role='button') Learn more &raquo;
  |     
  Regist
  .container
    // Example row of columns
    .row
      .col-md-4(v-for="x in details")
        h2 {{ x.title }}
        |           
        p
          | {{ x.content }}
        |           
        p
          a.btn.btn-default(href='#', role='button') View details &raquo;      
    hr
    |       
    footer
      p &copy; 2016 Company, Inc.

  // /container
</template>

<script>

import Info from '@/conf/info.json'
import Regist from '@/comp/Regist'


export default {
  name: 'HelloWorld',
  data () {
    return {
      info: {
        title: Info.main.title,
        msg: Info.main.msg

      },
      details: Info.details
    }
  },
  components: {Regist}
 // created:function () {
 //   fetch("http://httpbin.org/get").then(res=>res.json()).then(data=>this.info.msg=data.origin)
  
 // }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
